package com.nodity.gui;

import java.util.Random;

public class AbstractNode {
	
	private String name;
	private int id;
	
	public AbstractNode(String name) {
		this.name=name;
		makeNodeUnique();
		}

	private void makeNodeUnique(){
		
		Random rnd=new Random();
		
		
			id=rnd.nextInt();
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
